projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
139b572
)
(modifier_set): Check toggle state of CapsLock even
author
Karl Heuer
<kwzh@gnu.org>
Wed, 22 May 1996 03:26:55 +0000
(
03:26
+0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 22 May 1996 03:26:55 +0000
(
03:26
+0000)
if modifiers are not being recorded.
src/w32fns.c
patch
|
blob
|
history
diff --git
a/src/w32fns.c
b/src/w32fns.c
index f6f3f4aec1c523a14377680abd5b91b68f4bfdfe..9a1a4cae2136e38f0ec9535c8a3cd2ec69d2ac6a 100644
(file)
--- a/
src/w32fns.c
+++ b/
src/w32fns.c
@@
-2754,6
+2754,8
@@
reset_modifiers ()
static int
modifier_set (int vkey)
{
+ if (vkey == VK_CAPITAL)
+ return (GetKeyState (vkey) & 0x1);
if (!modifiers_recorded)
return (GetKeyState (vkey) & 0x8000);
@@
-2767,8
+2769,6
@@
modifier_set (int vkey)
return modifiers[EMACS_LMENU];
case VK_RMENU:
return modifiers[EMACS_RMENU];
- case VK_CAPITAL:
- return (GetKeyState (vkey) & 0x1);
default:
break;
}